CREATE TABLE [dbo].[TCAMAR_CCIN]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[NU_AMAR] [dbo].[TD_VC_008] NOT NULL,
[NU_PROC] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TCAMAR_CC__NU_PR__07020F21] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCAMAR_CC__CO_US__07F6335A] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCAMAR_CC__FE_US__08EA5793] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCAMAR_CC__CO_US__09DE7BCC] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCAMAR_CC__FE_US__0AD2A005] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCAMAR_CCIN] ADD CONSTRAINT [PK__TCAMAR_C__FD29C347532E30B7] PRIMARY KEY CLUSTERED  ([CO_EMPR], [NU_AMAR], [NU_PROC]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCAMAR_CCIN] ADD CONSTRAINT [FK__TCAMAR_CCIN__68D35913] FOREIGN KEY ([CO_EMPR], [NU_AMAR]) REFERENCES [dbo].[TCAMAR_CCOB] ([CO_EMPR], [NU_AMAR])
GO
